package com.doudou.zuul.utils;

import com.netflix.zuul.context.RequestContext;

public class ZuulFilterRequestUtils {
    public static String getRequestUri(RequestContext ctx) {
        return ctx.getRequest().getRequestURI();
    }


    public static String getRequestHeader(RequestContext ctx, String name) {
        return ctx.getRequest().getHeader(name);
    }

    public static String getRequestParam(RequestContext ctx, String name) {
        return ctx.getRequest().getParameter(name);
    }
}
